<%--&lt;%&ndash;--%>
  <%--Created by IntelliJ IDEA.--%>
  <%--User: Administrator--%>
  <%--Date: 2020/4/20--%>
  <%--Time: 16:46--%>
  <%--To change this template use File | Settings | File Templates.--%>
<%--&ndash;%&gt;--%>
<%--<%@ page contentType="text/html;charset=UTF-8" language="java" %>--%>
<%--&lt;%&ndash;<script src="${pageContext.request.contextPath}/js/jquery-3.3.1.js"></script>&ndash;%&gt;--%>
<%--&lt;%&ndash;<script>&ndash;%&gt;--%>
    <%--&lt;%&ndash;var userList=new Array();&ndash;%&gt;--%>
    <%--&lt;%&ndash;userList.push({username:"zhangsan",age:18});&ndash;%&gt;--%>
    <%--&lt;%&ndash;userList.push({username:"lisi",age:20});&ndash;%&gt;--%>

    <%--&lt;%&ndash;$.ajax({&ndash;%&gt;--%>
        <%--&lt;%&ndash;type:"POST",&ndash;%&gt;--%>
        <%--&lt;%&ndash;url:"${pageContext.request.contextPath}/quike7",&ndash;%&gt;--%>
        <%--&lt;%&ndash;data:JSON.stringify(userList),&ndash;%&gt;--%>
        <%--&lt;%&ndash;contentType:"application/json;charset=utf-8"&ndash;%&gt;--%>
    <%--&lt;%&ndash;});&ndash;%&gt;--%>
<%--&lt;%&ndash;</script>&ndash;%&gt;--%>
<%--<script src="${pageContext.request.contextPath}/js/jquery-3.3.1.js"></script>--%>
<%--<script>--%>
    <%--var userList = new Array();--%>
    <%--userList.push({username:"zhangsan",age:18});--%>
    <%--userList.push({username:"lisi",age:28});--%>

    <%--$.ajax({--%>
        <%--type:"POST",--%>
        <%--url:"${pageContext.request.contextPath}/quick15",--%>
        <%--data:JSON.stringify(userList),--%>
        <%--contentType:"application/json;charset=utf-8"--%>
    <%--});--%>

<%--</script>--%>
<%--<html>--%>
<%--<head>--%>
    <%--<title>Title</title>--%>
<%--</head>--%>
<%--<body>--%>

<%--</body>--%>
<%--</html>--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="${pageContext.request.contextPath}/js/jquery-3.3.1.js"></script>
    <script>
        var userList = new Array();
        userList.push({username:"zhangsan",age:18});
        userList.push({username:"lisi",age:28});

        $.ajax({
            type:"POST",
            url:"${pageContext.request.contextPath}/quike7",
            data:JSON.stringify(userList),
            contentType:"application/json;charset=utf-8"
        });

    </script>
</head>
<body>

</body>
</html>